package k2_oop.p8_javaUtil.demo01;

import java.time.LocalDate;
import java.time.Period;

public class CalculateAge {

    public static void main(String[] args) {

        LocalDate birthday = LocalDate.of(2004,2,5);
        LocalDate currentDate = LocalDate.now();

        Period period = Period.between(birthday,currentDate);
        System.out.println(period.getYears());

    }

}
